<div class="scrollbox">
  <table>
    <thead>
      <tr>
        <th class="tea-head">头像</th>
        <th class="tea-name">姓名</th>
        <th class="tea-sex">性别</th>
        <th class="tea-obj">授课对象</th>
        <th class="tea-t">导师等级</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>

      <!-- 导师列表查询模块 kevin-->
      <% @teachers.each do |teacher| %>
        <tr>
          <td>
            <div class="as-imgbox">
              <img src="" alt="">
            </div>
          </td>
          <td><%= teacher["name"] %></td>
          <td><%= teacher["sex"] %></td>
          <td><%= teacher["age_group"] %></td>
          <td><%= teacher["teacher_level"] %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看课表", admin_teacher_path(teacher["id"],name: teacher["name"]) %></em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "授课学员", :action => "get_my_students_by_teacher_id", :teacher_id => teacher["id"], :name => teacher["name"] %></em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "查看记录", :action => "get_my_record_teaching_salary", :teacher_id => teacher["id"], :name => teacher["name"] %></em>
            <span>]</span>
          </td>
        </tr>
      <% end %>

    </tbody>
  </table>
  <div class="apple_pagination" id ="will_page">
    <!-- 
    分页数据结构提示
    <div class="page_info">
      <%= page_entries_info @teachers %>
    </div> -->
    <%= paginate @teachers, :container => false %>
  </div>
</div>